import {
  post
} from "../http.js";
let api = process.env.VUE_APP_API;
if (process.env.VUE_APP_Mock == "true") {
  api = "/mock/";
}

/**
 * 按需引入
 */

// 1.获取设备分页列表
export const templPage = async (p) =>
  await post(api + "/witness/weeon/jzgly/managementsubsystem/broadcasttempl/page  ", p);

// 2.新增广播模板信息
export const templAdd = async (p) =>
  await post(api + "/witness/weeon/jzgly/managementsubsystem/broadcasttempl/add", p);

// 3.修改设备信息
export const templEdit = async (p) =>
  await post(api + "/witness/weeon/jzgly/managementsubsystem/broadcasttempl/edit", p);
